package com.hzf.material.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;

public class MaterialShop implements Serializable {
    /**
     * 商家ID（自增）
     *
     * @mbg.generated
     */
    private Integer shopId;

    /**
     * 商家名称
     *
     * @mbg.generated
     */
    private String shopName;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String imgUrl;

    /**
     * 商家店主姓名
     *
     * @mbg.generated
     */
    private String shopHostName;

    /**
     * 商家店主手机号
     *
     * @mbg.generated
     */
    private String shopHostTel;

    /**
     * 所在城市
     *
     * @mbg.generated
     */
    private String city;

    /**
     * 外键，商家所在商场类型ID
     *
     * @mbg.generated
     */
    private String shopAddress;

    /**
     * 外键，商家所在商场l类型ID
     *
     * @mbg.generated
     */
    private Integer marketTypeId;

    /**
     * 外键，商家所在的商场ID
     *
     * @mbg.generated
     */
    private Integer marketListId;

    /**
     * 外键，商家所在商场中的区位
     *
     * @mbg.generated
     */
    private Integer marketAreaListId;

    /**
     * 0:待审核，1：审核通过，2：驳回
     *
     * @mbg.generated
     */
    private Integer shopStatus;

    private MaterialListType materialListType;

    private MaterialList materialList;

    private MaterialArea materialArea;

    /**
     * 用户表id 外键
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * 经度
     *
     * @mbg.generated
     */
    private double lng;

    /**
     * 维度
     *
     * @mbg.generated
     */
    private double lat;
    private long geoCode;


    private static final long serialVersionUID = 1L;

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getShopHostName() {
        return shopHostName;
    }

    public void setShopHostName(String shopHostName) {
        this.shopHostName = shopHostName;
    }

    public String getShopHostTel() {
        return shopHostTel;
    }

    public void setShopHostTel(String shopHostTel) {
        this.shopHostTel = shopHostTel;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public Integer getMarketTypeId() {
        return marketTypeId;
    }

    public void setMarketTypeId(Integer marketTypeId) {
        this.marketTypeId = marketTypeId;
    }

    public Integer getMarketListId() {
        return marketListId;
    }

    public void setMarketListId(Integer marketListId) {
        this.marketListId = marketListId;
    }

    public Integer getMarketAreaListId() {
        return marketAreaListId;
    }

    public void setMarketAreaListId(Integer marketAreaListId) {
        this.marketAreaListId = marketAreaListId;
    }

    public Integer getShopStatus() {
        return shopStatus;
    }

    public void setShopStatus(Integer shopStatus) {
        this.shopStatus = shopStatus;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public MaterialListType getMaterialListType() {
        return materialListType;
    }

    public void setMaterialListType(MaterialListType materialListType) {
        this.materialListType = materialListType;
    }

    public MaterialList getMaterialList() {
        return materialList;
    }

    public void setMaterialList(MaterialList materialList) {
        this.materialList = materialList;
    }

    public MaterialArea getMaterialArea() {
        return materialArea;
    }

    public void setMaterialArea(MaterialArea materialArea) {
        this.materialArea = materialArea;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public long getGeoCode() {
        return geoCode;
    }

    public void setGeoCode(long geoCode) {
        this.geoCode = geoCode;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", shopId=").append(shopId);
        sb.append(", shopName=").append(shopName);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", shopHostName=").append(shopHostName);
        sb.append(", shopHostTel=").append(shopHostTel);
        sb.append(", city=").append(city);
        sb.append(", shopAddress=").append(shopAddress);
        sb.append(", marketTypeId=").append(marketTypeId);
        sb.append(", marketListId=").append(marketListId);
        sb.append(", marketAreaListId=").append(marketAreaListId);
        sb.append(", shopStatus=").append(shopStatus);
        sb.append(", userId=").append(userId);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialShop other = (MaterialShop) that;
        return (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()))
            && (this.getShopName() == null ? other.getShopName() == null : this.getShopName().equals(other.getShopName()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getShopHostName() == null ? other.getShopHostName() == null : this.getShopHostName().equals(other.getShopHostName()))
            && (this.getShopHostTel() == null ? other.getShopHostTel() == null : this.getShopHostTel().equals(other.getShopHostTel()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getShopAddress() == null ? other.getShopAddress() == null : this.getShopAddress().equals(other.getShopAddress()))
            && (this.getMarketTypeId() == null ? other.getMarketTypeId() == null : this.getMarketTypeId().equals(other.getMarketTypeId()))
            && (this.getMarketListId() == null ? other.getMarketListId() == null : this.getMarketListId().equals(other.getMarketListId()))
            && (this.getMarketAreaListId() == null ? other.getMarketAreaListId() == null : this.getMarketAreaListId().equals(other.getMarketAreaListId()))
            && (this.getShopStatus() == null ? other.getShopStatus() == null : this.getShopStatus().equals(other.getShopStatus()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
        result = prime * result + ((getShopName() == null) ? 0 : getShopName().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getShopHostName() == null) ? 0 : getShopHostName().hashCode());
        result = prime * result + ((getShopHostTel() == null) ? 0 : getShopHostTel().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getShopAddress() == null) ? 0 : getShopAddress().hashCode());
        result = prime * result + ((getMarketTypeId() == null) ? 0 : getMarketTypeId().hashCode());
        result = prime * result + ((getMarketListId() == null) ? 0 : getMarketListId().hashCode());
        result = prime * result + ((getMarketAreaListId() == null) ? 0 : getMarketAreaListId().hashCode());
        result = prime * result + ((getShopStatus() == null) ? 0 : getShopStatus().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}